﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="promotion.aspx.cs" Async="true"
    MasterPageFile="~/MasterPage.master" Inherits="signup_promo_promotion" %>

<%@ Register Src="~/controls/usrMobilePhone.ascx" TagName="usrPhoneNo" TagPrefix="uc10" %>
<asp:Content ID="Content2" ContentPlaceHolderID="cpHeader" runat="Server">
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="cpBody" runat="Server">
<%--<link rel="stylesheet" type="text/css" href="../css/button-th.css" />
    <link rel="stylesheet" type="text/css" href="../css/signup-promo.css" />--%>
    <%--<asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>--%>
    <div id="container">
        <div class="body">
            <div class="topcol">
            </div>
            <div class="body">
                <div class="padding_lr15px">
                    <!--Column Content | Start-->
                    <div class="col_content_full">
                        <div class="topcol">
                        </div>
                        <div class="body">
                            <div class="padding_lr30pxd">
                                <div id="container_slider">
                                    <div id="lofslidecontent45" class="lof-slidecontent">
                                        <div class="preload">
                                            <div>
                                            </div>
                                        </div>
                                        <!--MAIN CONTENT-->
                                        <div class="lof-main-wapper">
                                            <div class="lof-main-item">
                                                <div class="lof-main-item-desc">
                                                    <!--BODY PORTION Starts-->
                                                    <div id="containerSignup">
                                                        <div class="padding_40px">
                                                            <div class="h1">
                                                                <%=GetGlobalResourceObject("SignUp", "SignUpLine1")%></div>
                                                            <div class="h2">
                                                                <%=GetGlobalResourceObject("SignUp", "SignUpLine2")%></div>
                                                            <br />
                                                            <br />
                                                            <!--Form  |  Starts--->
                                                            <div>
                                                                <div class="form_col_1 comp left">
                                                                    <span id="ctl00_cpBody_lblFirstName">
                                                                        <%=GetGlobalResourceObject("SignUp", "Name")%></span></div>
                                                                <div class="form_col_2 left">
                                                                    <asp:TextBox ID="txtName" runat="server" MaxLength="50" Width="230"></asp:TextBox>
                                                                    <asp:RequiredFieldValidator ID="rfvName" runat="server" ControlToValidate="txtName"
                                                                        ValidationGroup="signupform" CssClass="validationErrorControl" ></asp:RequiredFieldValidator>
                                                                </div>
                                                            </div>
                                                            <div>
                                                                <div class="seperator_form">
                                                                </div>
                                                                <div>
                                                                    <div class="form_col_1 comp left">
                                                                        <span>
                                                                            <%=GetGlobalResourceObject("SignUp", "Mobile")%></span></div>
                                                                    <div class="form_col_2 left">
                                                                        <uc10:usrPhoneNo ID="txtMobileNo" ValidationGroup="signupform" IsEnabled="true" PhoneNoErrorMessage="Mobile Phone No must be number value."
                                                                            PhoneNoValidErrorMessage="Mobile phone no is not valid." IsRequired="true" PhoneNoRequireErrorMessage="Require Mobile Phone No."
                                                                            runat="server" />
                                                                    </div>
                                                                </div>
                                                                <div class="seperator_form">
                                                                </div>
                                                                <div>
                                                                    <div class="form_col_1 comp left">
                                                                        <span>
                                                                            <%=GetGlobalResourceObject("SignUp", "Email")%></span></div>
                                                                    <div class="form_col_2 left">
                                                                        <asp:TextBox ID="txtEmail" runat="server" Width="230px" />
                                                                        <asp:RequiredFieldValidator ID="rfvExEmail" CssClass="validationErrorControl" runat="server"
                                                                            ValidationGroup="signupform" ErrorMessage="" Text="" ControlToValidate="txtEmail"
                                                                            Display="Dynamic"></asp:RequiredFieldValidator>
                                                                        <asp:RegularExpressionValidator CssClass="validationErrorControl" ID="rfvExEmailValid"
                                                                            runat="server" ValidationGroup="signupform" ErrorMessage="" Text="" ControlToValidate="txtEmail"
                                                                            ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" Display="Dynamic"></asp:RegularExpressionValidator>
                                                                    </div>
                                                                </div>
                                                                <div class="seperator_form">
                                                                </div>
                                                                <div>
                                                                    <div class="form_col_1 comp left">
                                                                        <span id="Span1"><%=GetGlobalResourceObject("CarInsurance", "CarModelYear")%></span></div>
                                                                          <div class="form_col_2 left">
                                                                    <asp:UpdatePanel ID="uplManYear" runat="server">
                                                                        <ContentTemplate>
                                                                            <asp:DropDownList ID="ddlManufactYear" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlManufactYear_SelectedIndexChanged">
                                                                                <asp:ListItem Text="<%$ Resources:CarInsurance,Select%>" Value="-1" />
                                                                            </asp:DropDownList>
                                                                            <asp:RequiredFieldValidator CssClass="validationErrorControl" ID="rfvManufactYear"
                                                                                ControlToValidate="ddlManufactYear" InitialValue="-1" runat="server" ErrorMessage=""
                                                                                Text="" ValidationGroup="signupform"></asp:RequiredFieldValidator>
                                                                        </ContentTemplate>
                                                                    </asp:UpdatePanel>
                                                                </div>
                                                                </div>
                                                               <div class="seperator_form">
                                                                </div>
                                                            </div>
                                                            <div>
                                                                <div class="form_col_1 comp left">
                                                                    <span>
                                                                        <%=GetGlobalResourceObject("SignUp", "MakeModel")%></span></div>
                                                                <div class="form_col_2 left">
                                                                    <asp:UpdatePanel ID="uplCarInfo" runat="server">
                                                                        <ContentTemplate>
                                                                            <asp:DropDownList runat="server" ID="ddlCarMake" AutoPostBack="true" OnSelectedIndexChanged="ddlCarMake_SelectedIndexChanged">
                                                                                <asp:ListItem Text="<%$ Resources:CarInsurance,Select%>" Value="-1" />
                                                                            </asp:DropDownList>
                                                                            <asp:RequiredFieldValidator CssClass="validationErrorControl" ID="rfvCarMake" ControlToValidate="ddlCarMake"
                                                                                InitialValue="-1" runat="server" ErrorMessage="" Text="" ValidationGroup="signupform"></asp:RequiredFieldValidator>
                                                                            <asp:DropDownList runat="server" ID="ddlModelBodyCCDoor" AutoPostBack="True" OnSelectedIndexChanged="ddlModelBodyCCDoor_SelectedIndexChanged">
                                                                                <asp:ListItem Value="-1" Text="<%$ Resources:CarInsurance,Select%>"></asp:ListItem>
                                                                            </asp:DropDownList>
                                                                            <asp:RequiredFieldValidator CssClass="validationErrorControl" ID="rfvModelBodyCCDoor"
                                                                                ControlToValidate="ddlModelBodyCCDoor" InitialValue="-1" runat="server" ErrorMessage=""
                                                                                Text="" ValidationGroup="signupform"></asp:RequiredFieldValidator>
                                                                            <asp:Label Visible="false" runat="server" ID="lblModelDesc" />
                                                                            <asp:Label runat="server" ID="lblCarVehicleType" Text="" Visible="false" />
                                                                        </ContentTemplate>
                                                                    </asp:UpdatePanel>
                                                                </div>
                                                            </div> 
                                                            <div class="seperator_form">
                                                            </div>
                                                            <div>
                                                                <div class="form_col_1 comp left">
                                                                    <span>
                                                                        <%=GetGlobalResourceObject("SignUp", "RenewalMonth")%></span></div>
                                                                <div class="form_col_2 left">
                                                                      <asp:DropDownList runat="server" ID="ddlRenewalMonth">                                                                              
                                                                      </asp:DropDownList>
                                                                       <asp:RequiredFieldValidator CssClass="validationErrorControl" ID="rfvRenewalMonth"
                                                                                ControlToValidate="ddlRenewalMonth" InitialValue="-1" runat="server" ErrorMessage=""
                                                                                Text="" ValidationGroup="signupform"></asp:RequiredFieldValidator>
                                                                </div>
                                                            </div>
                                                            <div class="seperator_form">
                                                            </div>
                                                            <br />
                                                            <asp:Label runat="server" ID="lblSumInsured" Text="0" Visible="false" />
                                                            <div style="display: none">
                                                                <asp:TextBox ID="txtSumInsured" MaxLength="9" Width="80px" runat="server" />
                                                                <asp:TextBox ID="txtNewSumInsured" MaxLength="9" Width="80px" runat="server" />
                                                                <asp:TextBox ID="txtGroupNo" Text="-1" MaxLength="2" Width="30px" runat="server" />
                                                                <asp:DropDownList ID="ddlVehicleType" runat="server" >
                                                                <asp:ListItem Value="110" Text="<%$ Resources:CarInsurance,VehicleType_Private%>" />
                                                                </asp:DropDownList>
                                                            </div>                                                           
                                                    

                                                            <div style="width:430px; text-align:right">
                                                            <asp:Button ID="btnSignUp" runat="server" OnClick="btnSignUp_Click" CssClass="button_submit" OnClientClick="LoadValidationErrorCss()" ValidationGroup="signupform" />
                                                            <asp:Label ID="lblMessage" runat="server"></asp:Label>
                                                            </div>
                                                            
                                                            <!--Form  |  Ends--->
                                                            <div class="seperator">
                                                            </div>
                                                            <div class="hotlineTh">
                                                                <asp:Image runat="server" ID="imgHotLine" ImageUrl="<%$ Resources:SignUp,CallUsImage%>" alt="Hotline 02-268-8222 - Monday - Friday : 9.30am to 5.30pm" />
                                                            
                                                            <div style="height:20px"></div>
                                                            
                                                            <h3><%=GetGlobalResourceObject("SignUp", "PageFooter")%></h3>
                                                            </div>
                                                            
                                                            <div class="seperator">
                                                            
                                                            
                                                        </div>
                                                    </div>
                                                </div>
                                                <!--BODY PORTION Ends-->
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="bottom">
        </div>
    </div>
    </div>
</asp:Content>
